Integrand size = 29, antiderivative size = 402 \[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\frac {a i (g h-f i)^2 x}{g^3}-\frac {b i (e h-d i)^2 n x}{3 e^2 g}-\frac {b i (e h-d i) (g h-f i) n x}{2 e g^2}-\frac {b i (g h-f i)^2 n x}{g^3}-\frac {b (e h-d i) n (h+i x)^2}{6 e g}-\frac {b (g h-f i) n (h+i x)^2}{4 g^2}-\frac {b n (h+i x)^3}{9 g}-\frac {b (e h-d i)^3 n \log (d+e x)}{3 e^3 g}-\frac {b (e h-d i)^2 (g h-f i) n \log (d+e x)}{2 e^2 g^2}+\frac {b i (g h-f i)^2 (d+e x) \log \left (c (d+e x)^n\right )}{e g^3}+\frac {(g h-f i) (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {(g h-f i)^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {b (g h-f i)^3 n \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g^4} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 402, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {2465, 2436, 2332, 2441, 2440, 2438, 2442, 45} \[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\frac {(g h-f i)^3 \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^4}+\frac {(h+i x)^2 (g h-f i) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {a i x (g h-f i)^2}{g^3}+\frac {b i (d+e x) (g h-f i)^2 \log \left (c (d+e x)^n\right )}{e g^3}-\frac {b n (e h-d i)^3 \log (d+e x)}{3 e^3 g}-\frac {b n (e h-d i)^2 \log (d+e x) (g h-f i)}{2 e^2 g^2}-\frac {b i n x (e h-d i)^2}{3 e^2 g}+\frac {b n (g h-f i)^3 \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g^4}-\frac {b i n x (e h-d i) (g h-f i)}{2 e g^2}-\frac {b n (h+i x)^2 (e h-d i)}{6 e g}-\frac {b i n x (g h-f i)^2}{g^3}-\frac {b n (h+i x)^2 (g h-f i)}{4 g^2}-\frac {b n (h+i x)^3}{9 g} \]
[In]
[Out]
Rule 45
Rule 2332
Rule 2436
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2465
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {i (g h-f i)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3}+\frac {(g h-f i)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3 (f+g x)}+\frac {i (g h-f i) (h+i x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2}+\frac {i (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g}\right ) \, dx \\ & = \frac {i \int (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g}+\frac {(i (g h-f i)) \int (h+i x) \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^2}+\frac {\left (i (g h-f i)^2\right ) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^3}+\frac {(g h-f i)^3 \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{g^3} \\ & = \frac {a i (g h-f i)^2 x}{g^3}+\frac {(g h-f i) (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {(g h-f i)^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {\left (b i (g h-f i)^2\right ) \int \log \left (c (d+e x)^n\right ) \, dx}{g^3}-\frac {(b e n) \int \frac {(h+i x)^3}{d+e x} \, dx}{3 g}-\frac {(b e (g h-f i) n) \int \frac {(h+i x)^2}{d+e x} \, dx}{2 g^2}-\frac {\left (b e (g h-f i)^3 n\right ) \int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g^4} \\ & = \frac {a i (g h-f i)^2 x}{g^3}+\frac {(g h-f i) (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {(g h-f i)^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {\left (b i (g h-f i)^2\right ) \text {Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e g^3}-\frac {(b e n) \int \left (\frac {i (e h-d i)^2}{e^3}+\frac {(e h-d i)^3}{e^3 (d+e x)}+\frac {i (e h-d i) (h+i x)}{e^2}+\frac {i (h+i x)^2}{e}\right ) \, dx}{3 g}-\frac {(b e (g h-f i) n) \int \left (\frac {i (e h-d i)}{e^2}+\frac {(e h-d i)^2}{e^2 (d+e x)}+\frac {i (h+i x)}{e}\right ) \, dx}{2 g^2}-\frac {\left (b (g h-f i)^3 n\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g^4} \\ & = \frac {a i (g h-f i)^2 x}{g^3}-\frac {b i (e h-d i)^2 n x}{3 e^2 g}-\frac {b i (e h-d i) (g h-f i) n x}{2 e g^2}-\frac {b i (g h-f i)^2 n x}{g^3}-\frac {b (e h-d i) n (h+i x)^2}{6 e g}-\frac {b (g h-f i) n (h+i x)^2}{4 g^2}-\frac {b n (h+i x)^3}{9 g}-\frac {b (e h-d i)^3 n \log (d+e x)}{3 e^3 g}-\frac {b (e h-d i)^2 (g h-f i) n \log (d+e x)}{2 e^2 g^2}+\frac {b i (g h-f i)^2 (d+e x) \log \left (c (d+e x)^n\right )}{e g^3}+\frac {(g h-f i) (h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {(g h-f i)^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {b (g h-f i)^3 n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g^4} \\ \end{align*}
Time = 0.35 (sec) , antiderivative size = 379, normalized size of antiderivative = 0.94 \[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\frac {6 b d^2 g^2 i^2 (-9 e g h+3 e f i+2 d g i) n \log (d+e x)+e \left (g i x \left (6 a e^2 \left (6 f^2 i^2-3 f g i (6 h+i x)+g^2 \left (18 h^2+9 h i x+2 i^2 x^2\right )\right )-b n \left (12 d^2 g^2 i^2-6 d e g i (9 g h-3 f i+g i x)+e^2 \left (36 f^2 i^2-9 f g i (12 h+i x)+g^2 \left (108 h^2+27 h i x+4 i^2 x^2\right )\right )\right )\right )+36 a e^2 (g h-f i)^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )+6 b e \log \left (c (d+e x)^n\right ) \left (g i \left (6 d \left (3 g^2 h^2-3 f g h i+f^2 i^2\right )+e x \left (6 f^2 i^2-3 f g i (6 h+i x)+g^2 \left (18 h^2+9 h i x+2 i^2 x^2\right )\right )\right )+6 e (g h-f i)^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )\right )\right )+36 b e^3 (g h-f i)^3 n \operatorname {PolyLog}\left (2,\frac {g (d+e x)}{-e f+d g}\right )}{36 e^3 g^4} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 2.03 (sec) , antiderivative size = 1208, normalized size of antiderivative = 3.00
[In]
[Out]
\[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\int { \frac {{\left (i x + h\right )}^{3} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}}{g x + f} \,d x } \]
[In]
[Out]
\[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\int \frac {\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right ) \left (h + i x\right )^{3}}{f + g x}\, dx \]
[In]
[Out]
\[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\int { \frac {{\left (i x + h\right )}^{3} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}}{g x + f} \,d x } \]
[In]
[Out]
\[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\int { \frac {{\left (i x + h\right )}^{3} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}}{g x + f} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(h+i x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx=\int \frac {{\left (h+i\,x\right )}^3\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{f+g\,x} \,d x \]
[In]
[Out]